package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.annotation.AutoFill;
import com.sky.entity.Setmeal;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SetMealMapper {


    @AutoFill(OperationType.INSERT)
    @Insert("insert setmeal (setmeal.category_id,name, price, description) VALUES (#{id},#{name},#{price},#{description})")
    void saveSetMeal(Setmeal setmeal);

    Page<Setmeal> pageQuery(String name, Integer categoryId, Integer status);
}
